<?php 
//unset($_SESSION);
	header("Content-type:text/html;charset=utf-8");
	//echo '网站正在维护中，请稍后访问2...........';exit;
	define('CDN_URL','adfsdf');
	
	define('APP_NAME','Admin');
	
	define('APP_PATH','./Admin/');
	
	
	//JS目录
	define('SCRIPT_PATH','./Public/scripts');
	
	//公共图片目录
	define('IMAGES_PATH','./Public/images');
	
	//上传目录
	define('UPLOAD_PATH','./Public/uploads');
	
	//Form类图片上传目录
	define('FORM_PIC_UPLOAD_PATH','Mythink/EDITOR_UPLOAD');
	//Form类文件上传目录
	define('FORM_FILE_UPLOAD_PATH','Mythink/EDITOR_FILE_UPLOAD');
	
	//全局表的的表名称
	define('CM_TABLE','cm_table');
	//全局表的字段表名称
	define('CM_TABLE_COLUMN','cm_table_column');
	//全局菜单表名称
	define('CM_LIST','cm_list');
	//全局菜单细节表名称
	define('CM_LIST_ITEM','cm_list_item');
	
	//全局分页尺寸
	define('PAGE_SIZE','12');
	
	define('DATA_BASE','12');
	//全局上传大小控制 3M
	define('UPLOAD_SIZE',3145728*2);
	
	define('APP_DEBUG','true');
	

	//CMS部分常量
	define('TPL_IMG','./Public/images/myimg/');
	
	define('TPL_JS','./Public/scripts/tpl_js/');
	
	//默认内容模块 和方法
	define('CON_PATH','__APP__/Content/show/id');
	//默认分类模块 和方法
	define('CAT_PATH','__APP__/Content/lists/cat_id');
	
	
	
	
	
	
	
	//内容模块名称
	define('CON_MOD_NAME','Content');
	

	
	$APPS = array();
	$APPS[]=array(
		'APP_KEY'=>'24711398',
		'APP_SECRET'=>'774a0fbc633ded1303fd7a4751a4a653',
		'k'=>'af02fa6976c67632888737d5460c2fa3',
		'priority'=>'is_pricing',
		'accessKey'=>'access_token',
		'APP_NAME'=>'pricing',
		'startKey'=>'addtime',
		'endKey'  =>'endtime',
		'isFirstKey'=>'is_pricing_first'
	);
	$APPS[]=array(
		'APP_KEY'=>'24777989',
		'APP_SECRET'=>'c8306c89f4b3ba59d2c66963ced18178',
		'k'=>'b6934f1056b00cb85cfb621134ea38d4',
		'priority'=>'is_explosion',
		'accessKey'=>'access_token2',
		'APP_NAME'=>'explosion',
		'startKey'=>'addtime2',
		'endKey'  =>'endtime2',
		'isFirstKey'=>'is_explosion_first'
	);
	$APPS[]=array(
		'APP_KEY'=>'24778666',
		'APP_SECRET'=>'608a12b3b3db0c50eb6aff8b7f29b498',
		'k'=>'844229f6254f2aa5d88af80f31326fc4',
		'priority'=>'is_sub_pricing',
		'accessKey'=>'access_token3',
		'APP_NAME'=>'sub_explosion',
		'startKey'=>'addtime3',
		'endKey'  =>'endtime3',
		'isFirstKey'=>'is_sub_pricing_first'
	);
	
	$APPS[]=array(
		'APP_KEY'=>'24783412',
		'APP_SECRET'=>'990d6a66483b7c7347b52a168ff1853f',
		'k'=>'fcf79e16b59c8f32d7d677ed679fd627',
		'priority'=>'is_sub_explosion',
		'accessKey'=>'access_token4',
		'APP_NAME'=>'sub_sub_explosion',
		'startKey'=>'addtime4',
		'endKey'  =>'endtime4',
		'isFirstKey'=>'is_sub_explosion_first'
	);
	
	//define('APPS',$APPS);
	$GLOBALS['APPS'] = $APPS;
	
	$k 	= empty($_POST['k'])?'':$_POST['k'];
	
	if(empty($k)){
		$k 	= empty($_GET['k'])?'':$_GET['k'];
	}
	
	foreach($APPS as $app){
		
		if($app['k']==$k){
			
			define('APP_KEY',$app['APP_KEY']);
			define('APP_SECRET',$app['APP_SECRET']);
		}
	}
	
	if(empty($k)){
		define('APP_KEY','24711398');
		define('APP_SECRET','774a0fbc633ded1303fd7a4751a4a653');
	}
	 
	
	define('APP_REDIRECT','http://p4p.entenal.com/index.php/AliLogin/login_redirect');
	define('DOT','/**/');
	define('DOT2','|**|');
	
	
	
	
	
	require('./ThinkPHP/ThinkPHP.php');

	

?>

